package org.springblade.mach.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springblade.mach.entity.DrawingAttachApproval;

import java.util.List;

public interface DrawingAttachApprovalMapper extends BaseMapper<DrawingAttachApproval> {

	/**
	 * 获取图纸审批详情
	 * @param drawingAttachApproval
	 * @return
	 */
	DrawingAttachApproval getDrawingAttachApproval(DrawingAttachApproval drawingAttachApproval);

	/**
	 * 获取历史审批记录
	 * @param drawingUploadId
	 * @param taskDefinitionKey
	 * @return
	 */
	List<DrawingAttachApproval> findHistoryApprovalList(@Param("uploadId")Long drawingUploadId, @Param("taskDefinitionKey")String taskDefinitionKey);

	/**
	 * 逻辑删除 数据
	 * @param uploadId
	 * @param taskDefinitionKey
	 * @return
	 */
	Integer logicDel (@Param("uploadId") Long uploadId, @Param("taskDefinitionKey") String taskDefinitionKey);
}
